﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" MetaKeywords="上海众承精密机床有限公司,机床制造，出售" MetaDescription="机床制造，出售" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
		上海众承精密机床有限公司欢迎您

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="../../Content/pre/js/product_show.js" type="text/javascript"></script>
    <%--<div class="top8"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/ad_bottom.gif") %>" width="980" height="9" border="0" alt=""/></div>--%>
<div id="product">

<div id="screen">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="mFlash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" 
width="980" height="250"> 
<param name="movie" value="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/flash/show.swf") %>" /> 
<param name="quality" value="high" /> 
<param name="wmode" value="transparent" /> 
<embed id="mFlash2" src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/flash/show.swf") %>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" 
type="application/x-shockwave-flash" width="980" height="250"></embed> 
</object> 


 <%--<div id="box">
 <%if (ViewData["Demo_Products"] != null)
   {
       foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["Demo_Products"])
       {
           if (item.imgPath.HasElements)
           { %>
           <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/Product/ProductShow?id=<%=kysec.CR.Common.EncodeByBase64.Encode(item.pid.ToString()) %>&type=<%=item.type %>"><img src="<%=kysec.CR.MyUrl.WebData.WEBURL + item.imgPath.Element("item").Attribute("url").Value %>" ></a>
            <%}
           else
           {%><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/ljxq.gif") %>" alt="" title=""/><%}
       } %>

  <span id="txt"></span>
  <span id="tit"></span>
 <span id="lnk">
     <a href="#"></a>
     <%foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["Demo_Products"])
                       { %>
   <a></a>
<%} %> 
</span> 
   <%} %></div>--%>
</div>
<%--<!-- crossbrowser images_loading_bar - Gerard Ferrandez - <a hreF="www.dhteumeuleu.com" target="_top">www.dhteumeuleu.com</a> - Feb 2005 -->
<span id="LB0" style="position:absolute;left:50%;top:280px;"><span style="position:absolute;font-family:arial;font-size:10px;color:#FFFFFF;left:-50px;top:-18px">Loading...</span>
<span style="position:absolute;left:-50px;top:-5px;font-size:1px;width:100px;height:10px;background:#333"><span id="LB1" style="position:absolute;left:0px;top:0px;font-size:1px;width:0px;height:10px;background:#FFFFFF"></span></span></span>
<script language="javascript" type="text/javascript">    m00 = document.getElementById("box").getElementsByTagName("img"); m01 = m00.length; function images_loading_bar() { m02 = 0; for (i = 0; i < m01; i++) m02 += (m00[i].complete) ? 1 : 0; document.getElementById("LB1").style.width = Math.round(m02 / m01 * 100) + 'px'; if (m02 == m01) setTimeout("document.getElementById('LB0').style.display='none'", 128); else setTimeout("images_loading_bar()", 64); }; images_loading_bar();</script>
<!-- end of images_loading_bar code -->--%>
</div>
<!--产品演示结束-->
<div class="clear"></div>
<!--内容开始-->
<div id="content">
	<div class="new">
		<%--<img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/title_ul.gif") %>" height="20" width="92" />--%>
        <span>最新动态</span>
		<div id="newslist0" class="newslist"><ul>
<%if (ViewData["NEWS"] != null)
                        {
                            foreach (var item in (System.Collections.Generic.IEnumerable<kysec.Bll.News.newData>)ViewData["NEWS"])
                            { %>
                        <li><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/News/NewsInfo?id=<%=kysec.CR.Common.EncodeByBase64.Encode(item.newsId.ToString()) %>&type=1" title="<%=item.title %>"><%=item.title.Length > 12 ? item.title.Substring(0, 12) : item.title%>...</a></li>	<%}
                        } %>    
		</ul></div>
	</div>
	<div class="new_product">
		<%--<div><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/zxcp.gif") %>" height="20" width="92" />        
		</div>--%><span>最新产品</span>
        <div class="clear"></div>
		<div id="zuixin">
       <%if (ViewData["new_Products"] != null)
                        {
                            foreach (var item in (System.Collections.Generic.IEnumerable<kysec.RAL.EFToMySql.tb_product>)ViewData["new_Products"])
                            {
                                XElement imgPath = XElement.Parse(item.c_x_imgPath);%>
                                
			<div class="cp_img"><%if (imgPath.HasElements)
                                {
                                %><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + imgPath.Element("item").Attribute("url").Value)%>" alt="最新产品"/><%}else{%><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/11.jpg")%>" alt="最新产品"/><%}%></div>
			<div class="cp_shuoming">
				<p><%if (item.c_vc_pFunction != "")
         { %><%=item.c_vc_pFunction.Length > 90 ? item.c_vc_pFunction.Substring(0, 90) : item.c_vc_pFunction.ToString()%><%}
         else
         { %>高效率：美国专利智能高频电源，效率高达300mm2/分钟<%} %>......</p>               
				<a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/Product/ProductShow?id=<%=kysec.CR.Common.EncodeByBase64.Encode(item.c_uq_pId.ToString()) %>&type=0"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/ljxq.gif") %>" alt="<%=item.c_vc_name.Length > 20 ? item.c_vc_name.Substring(0, 20) : item.c_vc_name%>" title="<%=item.c_vc_pModel.ToString() %>" /></a>
			</div><%}
                            }
%>
		</div>
	</div>
	<div class="show_product"><%--<img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/ypys.gif") %>" height="20" width="92" />--%>
    <span>热门产品</span>
    <script src="../../Scripts/ImagesScroll.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#product_Demo').marquee({ direction: 'left' });
        });
     </script>
		<div id="product_Demo" class="scrollImg">
			<ul>
<%if (ViewData["Demo_Products"] != null)
                        {
                            foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["Demo_Products"])
                            {
                                %>
                        <li><a target="_blank" width="480px" href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/Product/ProductShow?id=<%=kysec.CR.Common.EncodeByBase64.Encode(item.pid.ToString()) %>&type=<%=item.type %>">
                        <%if (item.imgPath.HasElements)
                          { %><img src="<%=kysec.CR.MyUrl.WebData.WEBURL + item.imgPath.Element("item").Attribute("url").Value %>" ></a></li>
                        	<%}
                                else
                                {%>
                                <img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/ljxq.gif") %>" alt="" />
                                <%}
                            }
                        } %>
			</ul>
		</div>
	</div>
</div>
<!--内容结束-->
<div class="clear"></div>

</asp:Content>
